package com.messe.base.models;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class ManualFile implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2855532505926723910L;

	private String id;
	private Manual manual;
	private Person person;
	private String url;
	private Integer languageType;
	private Timestamp createdStamp;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Manual getManual() {
		return manual;
	}
	public void setManual(Manual manual) {
		this.manual = manual;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	public String getUrl() {
		return (null != url) ? url : "";
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Integer getLanguageType() {
		return languageType;
	}
	public void setLanguageType(Integer languageType) {
		this.languageType = languageType;
	}
	public Timestamp getCreatedStamp() {
		return createdStamp;
	}
	public void setCreatedStamp(Timestamp createdStamp) {
		this.createdStamp = createdStamp;
	}
	
	public String getCreateTime(){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		return (null != createdStamp) ? sdf.format(createdStamp) : "";
	}
}
